package com.sinheldrin.musicplayer.fields
{
	import mx.collections.ArrayCollection;

	public class FieldsModel
	{
		public function FieldsModel()
		{
			_classes = new ArrayCollection();
		}
		
		private var _classes:ArrayCollection = null;
		public function get classes():ArrayCollection
		{
			return _classes;
		}
		
		public function getClassByName(name:String):FieldClass
		{
			for each (var fc:FieldClass in _classes)
			{
				if (fc.name == name)
					return fc;
			}
			return null;
		}
		
		private var _maxId:int = 0;
		public function get maxId():int
		{
			return _maxId;
		}
		public function set maxId(value:int):void
		{
			_maxId = value;
		}

	}
}